package com.ljf.authority.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.model.BasisModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 按钮API关联对象  authority_rel_button_api
 *
 * @author LJF
 * @since 2024-10-30
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("按钮API关联")
@EqualsAndHashCode(callSuper = true)
@TableName("authority_rel_button_api")
public class AuthorityRelButtonApi extends BasisModel {

	private static final long serialVersionUID = 1L;

	/**
	 * Java类型: Long
	 * 数据库类型: bigint
	 * 注释: ID
	 * {@link AuthorityRelButtonApi#COL_ID}
	 */
	@JsonProperty("id")
	@ApiModelProperty(value = "ID")
	@TableId(value="id", type= IdType.AUTO)
	private Long id;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(60)
	 * 注释: 按钮编码
	 * {@link AuthorityRelButtonApi#COL_BUTTON_CODE}
	 */
	@TableField("button_code")
	@JsonProperty("buttonCode")
	@ApiModelProperty(value = "按钮编码")
	private String buttonCode;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(50)
	 * 注释: API编码
	 * {@link AuthorityRelButtonApi#COL_API_CODE}
	 */
	@TableField("api_code")
	@JsonProperty("apiCode")
	@ApiModelProperty(value = "API编码")
	private String apiCode;


	/**
	 * ID
	 * {@link AuthorityRelButtonApi#id}
	 */
	public static final String COL_ID = "id";
	/**
	 * 按钮编码
	 * {@link AuthorityRelButtonApi#buttonCode}
	 */
	public static final String COL_BUTTON_CODE = "button_code";
	/**
	 * API编码
	 * {@link AuthorityRelButtonApi#apiCode}
	 */
	public static final String COL_API_CODE = "api_code";

}
